package org.lc.cmd.connect.impl;

import org.lc.cmd.impl.beans.SpringJsonUtil;
import org.lc.cmd.util.ContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@SpringBootApplication
@EnableWebSocket
@Import({SpringJsonUtil.class, ContextUtil.class})
public class Main  {
    public static void main(String[] args) {
        SpringApplication.run(Main.class);
    }

    @Bean
    public ServerEndpointExporter initWs() {
        return new ServerEndpointExporter();
    }
}
